
.PHONY:connection_test

connection_test:mq_connection_test.cc ../mqcommon/mq_msg.pb.cc ../mqcommon/mq_proto.pb.cc
	g++ -o $@ $^ -g -std=c++14  -lgtest -lprotobuf -lsqlite3 -I../mqthird/include  

channel_test:mq_channel_test.cc ../mqcommon/mq_msg.pb.cc ../mqcommon/mq_proto.pb.cc
	g++ -o $@ $^ -g -std=c++14  -lgtest -lprotobuf -lsqlite3 -I../mqthird/include  

consumer_test:mq_consumer_test.cc 
	g++ -o $@ $^ -g -std=c++14  -lgtest

route_test:mq_route_test.cc 
	g++ -o $@ $^ -g -std=c++14  -lgtest

vh_test:mq_virtualhost_test.cc ../mqcommon/mq_msg.pb.cc
	g++ -o $@ $^ -g -std=c++14 -lsqlite3 -lgtest -lprotobuf 

message_test:mq_message_test.cc ../mqcommon/mq_msg.pb.cc
	g++ -o $@ $^ -g -std=c++14 -lsqlite3 -lgtest -lprotobuf 

binding_test:mq_binding_test.cc
	g++ -o $@ $^ -g -std=c++14 -lsqlite3 -lgtest -lprotobuf

queue_test:mq_queue_test.cc
	g++ -o $@ $^ -g -std=c++14 -lsqlite3 -lgtest -lprotobuf

exchange_test:mq_exchange_test.cc
	g++ -o $@ $^ -g -std=c++14 -lsqlite3 -lgtest -lprotobuf

.PHONY:clean
clean:
	rm exchange_test queue_test binding_test message_test vh_test route_test consumer_test channel_test